<?php

/* 
  require 'src/config/cfPetshop.php';
 

$cf = new cfPetshop();

echo ($cf->dateToBR("2011-10-31"));
echo ('<br>');
echo ($cf->dateToUS("31/10/2011"));

echo ('<br>');echo ('<hr/>');

echo ($cf->dateTimeToUS("31/10/2011 10:30:20"));
echo ('<br>');
echo ($cf->dateTimeToBR("2011-10-31 10:30:20"));
*/

/**TESTANDO INSERCAO**/
//require_once 'src/db/dbConnection.php';
//echo 'teste';
//$co = new dbConnection();
//
//$md5 = md5("admin");
//$sql = "INSERT INTO funcionario( login, senha, nome, cpf, telefone, endereco, salario, funcao, status)"
//        . " VALUES ('admin', '" . $md5 . "', 'administrador', '000.000.000-00', '(55)3223-3333', 'Rua Appel', 2000.00 , 'Atendente', '1' )";
//
//$co->RunQuery($sql) or die ("Erro quando inseri");


require_once './src/action/aCliente.php';

$cl = new aCliente();
//echo 'teste';

$cl->setObjCliente(null, "Maria Santos", "msanto",'1234', '000.000.000-00', '(55)2222-2222', 'Av. Presidente Vargas, Nro 100');

//$cl->setIdcliente(5);

//$cl->load();

//echo $cl->toString();
$cl->insert();

//require_once 'src/core/Clientes.php';
//
//$a = new Clientes();
//$lista = $a->select();
//
//echo "<h1>Clientes</h1>";
//
//foreach ($lista as $ele){
//    print_r($ele);
//    echo "<br>";
//}

?>